package cc.comac.mom.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipWarehouseStockService;
import cc.comac.mom.bean.EquipWarehouseStock;
import cc.comac.mom.bean.EquipWarehouseStockBean;
import cc.comac.mom.bean.ResultDev;
import cc.comac.mom.datahandlers.entity.EquipWarehouseStockDataHandler;
@Service
@RestController
public class EquipWarehouseStockServiceImpl implements EquipWarehouseStockService{

	@Autowired
	private EquipWarehouseStockDataHandler equipWarehouseStockDataHandler;
	@Override
	public ResultDev selectBySparePartId(@RequestBody EquipWarehouseStock equipWarehouseStock) {
		return equipWarehouseStockDataHandler.selectBySparePartId(equipWarehouseStock);
	}
	@Override
	public ResultDev selectByFields(@RequestBody EquipWarehouseStockBean obj) {
		// TODO Auto-generated method stub
		return equipWarehouseStockDataHandler.selectByFields(obj);
	}

}
